package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"pets/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/user/login", &controllers.UserController{}, "POST:Login")
	beego.Router("/types/add", &controllers.TypesController{}, "POST:Add")
	beego.Router("/pets/add", &controllers.PetsController{}, "POST:Add")
	beego.Router("/user/list", &controllers.UserController{}, "GET:List")
	beego.Router("/pets/list", &controllers.PetsController{}, "GET:List")
	beego.Router("/pets/del", &controllers.PetsController{}, "POST:Del")
	beego.Router("/pets/show", &controllers.PetsController{}, "GET:Show")
}
